ADP\BaseVersion\Includes\CartProcessor\CartProcessor D

Total Complexity 170
Dependencies 32
Dependents 3
Total lines 1,294
Lines of code 794
Logical lines of code 500
Comment lines 245
Methods 29
Properties 23

Methods 29

Method Rating Maintainability Complexity Lines of code
process()
D
17
55 266
maybeRemoveOriginCoupons()
B
40 16 66
replaceWcNotice()
A
46 16 40
calculateFreeProductsMapping()
A
42 10 51
__construct()
A
44 8 46
addFreeItems()
A
42 6 56
addCommonItems()
S
44 6 43
addNoticeIfNotExists()
S
58 6 15
setProductPriceDependsOnPriceMode()
S
53 5 23
notifyAboutAddedFreeItems()
S
61 5 12
insertRegularTotals()
S
54 4 20
eliminateClones()
S
56 4 18
processFreeItems()
S
58 4 16
syncCartItemHashes()
S
63 5 10
processAutoAddItems()
S
60 3 13
applyTotals()
S
62 2 12
installActionFirstProcess()
S
60 1 16
filterCheckCartItemExistenceBeforeUpdate()
S
70 2 6
sanitizeWcCart()
S
68 2 7
withContext()
S
60 1 15
addNoticeAddedFreeProduct()
S
62 1 11
addNoticeRemovedFreeProduct()
S
62 1 11
purgeAppliedCoupons()
S
81 1 3
getListener()
S
82 1 3
getWcNoFilterWorker()
S
82 1 3
postApplyProcess()
S
83 1 3
addRuleTriggerCoupons()
S
79 1 3
addOriginCoupons()
S
79 1 3
getCommonItemsFromCart()
S
79 1 3